﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Eventhere.Work
{
    public class User : Contact
    {
        /**************Attributs****************/
        private String password;

        public String Password
        {
            get { return password; }
            set { password = value; }
        }
        
        private String mailSupp;

        public String MailSupp
        {
            get { return mailSupp; }
            set { mailSupp = value; }
        }
        private Repertory repertoryContact;

        public Repertory RepertoryContact
        {
            get { return repertoryContact; }
            set { repertoryContact = value; }
        }
    
    /*************Constructeur***************/
    
    public User(int id, string mail, string prenom, string nom, string pass, Repertory reperto) : base(id, mail, prenom, nom)
    {
        this.password = pass;
        this.repertoryContact = reperto;
    }
    
    
    /**************METHODES*****************/
    public Event CreateEvent(SortedSet<Contact> listContactEvent)
    {
        Event UnEvent = new Event(listContactEvent);
        return UnEvent;
    }
    public Event CreateEvent()
    {
        Event UnEvent = new Event();
        return UnEvent;
    }
    public void addContactToRepertory(Contact unContact)
    {
        this.repertoryContact.addContact(unContact);
    }
}
}
